<!doctype html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>钢链网-消息中心</title>
	<link rel="stylesheet" href="/resource/css/gl_index.css">
	<link rel="stylesheet" href="/resource/css/gl_user.css">

	<script src="/resource/js/jquery-1.11.3.min.js"></script>
	<script src="/resource/js/gl_index.js"></script>
</head>
<body>
<div class="head">
    @include('common.user_head')
</div>
<div class="user-head">
	<div class="main">
		<div class="logo">
			<a href="/"><img src="/resource/img/logo.png" alt=""></a>
			<div>我的钢链网
				<a href="/">返回首页</a>
			</div>
		</div>
	</div>
</div>	
<div class="user main">
	<div class="news-ul">
		<ul>
            @if($type=='all_message')
			<li  class="active"><a href="/shop_user_news?type=all_message"><i></i>系统通知</a></li>
			<li><a href="/shop_user_news?type=my_message"><i></i>订单消息</a></li>
		    @else
            <li><a href="/shop_user_news?type=all_message"><i></i>系统通知</a></li>
            <li   class="active"><a href="/shop_user_news?type=my_message"><i></i>订单消息</a></li>
            @endif
        </ul>
	</div>
	<div class="news-cont">
        @if($type=="all_message")
		<div class="cont">
            @foreach($message['all_message'] as $v)
			<div class="info">
				<div class="info-index"></div>
				<div class="mess">
					<div class="time">{{date('Y-m-d H:i',$v->created)}}</div>
					<div class="box">
						<div class="til">{{$v->title}}</div>
						<div class="p">{{$v->content}}</div>
					</div>
				</div>
			</div>
            @endforeach
		</div>
        @else
		<div class="cont">
            @foreach($message['my_message'] as $v)
                <div class="info">
                    <div class="info-index"></div>
                    <div class="mess">
                        <div class="time">{{date('Y-m-d H:i',$v->created)}}</div>
                        <div class="box">
                            <div class="til">{{$v->title}}</div>
                            <div class="p">{{$v->content}}</div>
                        </div>
                    </div>
                </div>
            @endforeach
		</div>
          @endif
	</div>
</div>
@include('common.shop_foot')
</body>
</html>